<template>
  <view class="demo-container">
    <!-- 基础用法 -->
    <view class="demo-block">
      <view class="demo-block__title">基础用法</view>
      <view class="demo-block__content">
        <view class="demo-box">内容</view>
        <fu-gap />
        <view class="demo-box">内容</view>
      </view>
    </view>
    
    <!-- 自定义高度 -->
    <view class="demo-block">
      <view class="demo-block__title">自定义高度</view>
      <view class="demo-block__content">
        <view class="demo-box">内容</view>
        <fu-gap :height="40" />
        <view class="demo-box">内容</view>
      </view>
    </view>
    
    <!-- 自定义背景色 -->
    <view class="demo-block">
      <view class="demo-block__title">自定义背景色</view>
      <view class="demo-block__content">
        <view class="demo-box">内容</view>
        <fu-gap bg-color="#2979ff" />
        <view class="demo-box">内容</view>
      </view>
    </view>
    
    <!-- 自定义外边距 -->
    <view class="demo-block">
      <view class="demo-block__title">自定义外边距</view>
      <view class="demo-block__content">
        <view class="demo-box">内容</view>
        <fu-gap :margin-top="20" :margin-bottom="20" />
        <view class="demo-box">内容</view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {}
  }
}
</script>

<style lang="scss" scoped>
.demo-container {
  padding: 20rpx;
}

.demo-block {
  margin-bottom: 30rpx;
  
  &__title {
    margin-bottom: 20rpx;
    font-size: var(--fu-font-size-lg);
    color: var(--fu-text-color);
  }
  
  &__content {
    background-color: #fff;
    border-radius: var(--fu-radius-base);
    padding: 30rpx;
  }
}

.demo-box {
  height: 100rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: var(--fu-text-color);
  font-size: var(--fu-font-size-base);
}
</style> 